var t, e = require("./utils/http.js"),
  i = require("/utils/util.js"),
  s = require("./utils/filter.js"),
  n = require("./plugins/qqmap-wx-jssdk.min.js");
App({
  onLaunch: function () {
    t = new n({
      key: this.constants.qqMapKey
    }), this.constants.QQMAPSDK = t, wx.getUserProfile && (this.constants.canIUseGetUserProfile = !0);
    var e = wx.getSystemInfoSync(),
      i = wx.getMenuButtonBoundingClientRect(),
      s = e.model.slice(0, 8);
    0 == i.top && setTimeout((function () {
      i = wx.getMenuButtonBoundingClientRect()
    }), 400), this.topBarData.isSystem = e.system.indexOf("iOS") > -1, this.topBarData.isiOSx = "iPhone X" == s || "iPhone 1" == s, this.topBarData.statHeight = e.statusBarHeight, this.topBarData.jnBtnTop = i.top, this.topBarData.jnBtnHeight = i.height, this.topBarData.jnBtnRight = e.screenWidth - i.right
  },
  onShow: function (t) {
    i.checkUpdateVersion()
  },
  towxml: require("/towxml/index"),
  topBarData: {},
  constants: {
    http: e,
    util: i,
    qqMapKey: "PFGBZ-JGNK3-D4W3R-YY5OA-QS62Q-C5BKI",
    pageCheck: s.pageCheck,
    key_token: e.KEY_TOKEN,
    toast_short: e.TOAST_SHORT,
    toast_long: e.TOAST_LONG
  }
});